package com.eshopkeeper.core.util.yunzhi;


public final class Consts {

    // 返回码
    public static final String SUCCESS_CODE = "00000";
    public static final String CHECK_CODE = "00001";
    public static final String SESSION_LOSE_CODE = "00002";
    public static final String ERROR_CODE = "00003";
    public static final String SECURITY_CODE = "00004";
    public static final String PARTIAL_FAILURE_CODE = "00005";
    public static final String FAILURE_CODE = "00006";
    public static final String BUSINESSE_CODE = "00007";
    public static final String NOT_AUTH_CODE = "00008";

    /**
     * 返回状态码标识
     */
    public static final String RES_CODE = "rescode";
    /**
     * 返回描述信息
     */
    public static final String RES_MSG = "resmsg";

    /**
     * 返回中文描述信息
     */
    public static final String RES_MSG_CN = "resmsg_cn";

    /**
     * 返回列表信息标识
     */
    public static final String LIST = "list";

    /**
     * 返回列表信息数标识
     */
    public static final String LIST_SIZE = "listSize";

    /**
     * 返回列表信息总条数标识
     */
    public static final String TOTAL_NUM = "totalNum";

    public static final String SUCCESS_DESCRIBE = "success";


    public static final String SUCCESS_CN = "1";
    public static final String ERROR_CN = "0";
    public static final String PHONECHECK2 = "^\\d{11}$";


    // 手机号段
    public static final String PHONECHECK = "^((13[0-9])|(14[0-9])|(15[0-9])|(17[0-9])|(18[0-9]))\\d{8}$";
    //public static final String PHONECHECK="^1[3|5|8|4|7][0-9]\\d{4,8}$";


    /**
     * 分页常量
     */
    public class Page {
        /**
         * 默认页大小
         */
        public static final int PAGE_SIZE = 10;
        /**
         * 默认当前页
         */
        public static final int PAGE_CURRENT = 1;
        /**
         * 每页显示最大数
         */
        public static final int PAGE_MAX_SIZE = 20;
        /**
         * 上送页大小默认名
         */
        public static final String PAGE_SIZE_NAME = "pageSize";
        /**
         * 上送当前页默认名
         */
        public static final String PAGE_CURRENT_NAME = "current";
        /**
         * 返回列表默认名
         */
        public static final String PAGE_LIST = "list";
        /**
         * 返回列表大小默认名
         */
        public static final String PAGE_LIST_SIZE = "listSize";

    }

    /**
     * 错误信息
     */
    public class ErrorMsg {
        /**
         * 业务异常、系统异常
         **/
        public static final String MSG00001 = "businesseError";
        /**
         * 请选择银行
         **/
        public static final String MSG00002 = "bank.is.null";
        /**
         * 请输入银行卡号
         **/
        public static final String MSG00003 = "bankcard.is.null";
        /**
         * 请输入验证码
         **/
        public static final String MSG00004 = "captcha.is.null";
        /**
         * 验证码错误
         **/
        public static final String MSG00005 = "check.captcha.failed";
        /**
         * 请选择登陆类别
         **/
        public static final String MSG00006 = "logintype.is.null";
        /**
         * 该用户已绑定手机
         **/
        public static final String MSG00007 = "mobile.is.bound";
        /**
         * 手机号格式错误
         **/
        public static final String MSG00008 = "mobile.is.non-standard";
        /**
         * 请输入手机号
         **/
        public static final String MSG00009 = "mobile.is.null";
        /**
         * 用户名存在多个邮箱
         **/
        public static final String MSG00010 = "multiple.mailboxes.existed";
        /**
         * 请输入新密码
         **/
        public static final String MSG00011 = "new.password.is.null";
        /**
         * 旧密码错误
         **/
        public static final String MSG00012 = "old.password.is.incorrect";
        /**
         * 请输入旧密码
         **/
        public static final String MSG00013 = "old.password.is.null";
        /**
         * 密码必须为6-20位数字或字母
         **/
        public static final String MSG00014 = "password.is.non-standard";
        /**
         * 请输入密码
         **/
        public static final String MSG00015 = "password.is.null";

        /**
         * 余额获取有误，请刷新页面
         **/
        public static final String MSG00017 = "sufficient.funds.is.incorrect";

        /**
         * 请输入用户名
         **/
        public static final String MSG00020 = "user.is.null";
        /**
         * 用户名不存在
         **/
        public static final String MSG00021 = "user.not.exist";

        /**
         * 用户名或密码错误
         **/
        public static final String MSG00023 = "userOrPassword.is.incorrect";

        /**
         * 版本号为空
         **/
        public static final String MSG00024 = "appVersion.is.null";
        /**
         * 版本号不正确
         **/
        public static final String MSG00025 = "appVersion.is.incorrect";
        /**
         * 操作系统为空
         **/
        public static final String MSG00026 = "osName.is.null";
        /**
         * 操作系统不正确
         **/
        public static final String MSG00027 = "osName.is.incorrect";

        /**
         * 参数非法
         **/
        public static final String MSG00029 = "argument.is.invalid";


    }
}
